home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / gnu_oleo_1_2_2.lha / oleo-1.2.2 / utils.h < prev    next >
C/C++ Source or Header  |  1993-03-03  |  3KB  |  100 lines

  1. #ifndef UTILSH
  2. #define UTILSH
  3.  
  4. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this software; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19. /*  t. lord    Sun Aug  9 20:37:34 1992    */
  20.  
  21. #include <stdio.h>
  22. #include "funcdef.h"
  23. #include "global.h"
  24.  
  25. extern char *argv_name;
  26. extern int __make_backups;
  27. extern int __backup_by_copying;
  28.  
  29. #ifdef __STDC__
  30. extern VOIDSTAR ck_malloc (size_t);
  31. extern VOIDSTAR ck_calloc (size_t);
  32. extern VOIDSTAR ck_realloc (void *,size_t);
  33. extern char * ck_savestr (char *);
  34. #define ck_free free
  35. #define ck_remalloc(OLD, SIZE) \
  36.   ((OLD) ? ck_realloc ((OLD), (SIZE)) : ck_malloc (SIZE))
  37.  
  38. extern void get_usr_stats (int, char **);
  39. extern void set_usr_stats (int, char **);
  40.  
  41. extern char *char_to_string (int);
  42. extern int string_to_char (char **);
  43. extern FILE *xopen_with_backup (const char *,const char *);
  44. extern int xclose (FILE *);
  45. extern char *err_msg (void);
  46. extern char *mk_sprintf (char *, ...);
  47.  
  48. extern void init_mem (void);
  49. extern void init_eval (void);
  50. extern void init_refs (void);
  51. extern void init_cells (void);
  52. extern VOIDSTAR init_stack (void);
  53.  
  54. struct rng;
  55. extern void panic_read_file (FILE *,int);
  56. extern void panic_write_file (FILE *,struct rng *);
  57. extern  int panic_set_options (int, char *);
  58. extern void panic_show_options (void);
  59.  
  60. extern VOIDSTAR pop_stack (VOIDSTAR);
  61. extern void push_stack (VOIDSTAR, VOIDSTAR);
  62. extern void flush_stack (VOIDSTAR);
  63. #else
  64. extern VOIDSTAR ck_malloc ();
  65. extern VOIDSTAR ck_calloc ();
  66. extern VOIDSTAR ck_realloc ();
  67. extern char * ck_savestr ();
  68. #define ck_free free
  69. #define ck_remalloc(OLD, SIZE) \
  70.   ((OLD) ? ck_realloc ((OLD), (SIZE)) : ck_malloc (SIZE))
  71.  
  72. extern void get_usr_stats ();
  73. extern void set_usr_stats ();
  74.  
  75. extern char *char_to_string ();
  76. extern int string_to_char ();
  77. extern FILE *xopen_with_backup ();
  78. extern int xclose ();
  79. extern char *err_msg ();
  80. extern char *mk_sprintf ();
  81.  
  82. extern void init_mem ();
  83. extern void init_eval ();
  84. extern void init_refs ();
  85. extern void init_cells ();
  86. extern VOIDSTAR init_stack ();
  87.  
  88. extern void panic_read_file ();
  89. extern void panic_write_file ();
  90. extern  int panic_set_options ();
  91. extern void panic_show_options ();
  92.  
  93. extern VOIDSTAR pop_stack ();
  94. extern void push_stack ();
  95. extern void flush_stack ();
  96. #endif
  97.  
  98. #endif
  99.  
  100.